# NOT RUN {
# THE CODE IN THIS EXAMPLE IS THE SAME AS THAT USED IN THE TUTORIAL, AND
# THUS YOU NEED TO DOWNLOAD THE TUTORIAL DATA SET AND SET FILEPATH
# CORRECTLY TO RUN THIS
# }
# NOT RUN {
## Example for Robustness Analysis
## INCLUDE THESE TWO LINES FOR NETLOGO - REMOVES ANY PERIODS PLACED IN THE
## PARAMETERS AND MEASURES IN THE SPREADSHEET
PARAMETERS<-table_header_check(PARAMETERS)
MEASURES<-table_header_check(MEASURES)
oat_process_netlogo_result(FILEPATH,NETLOGO_BEHAVIOURSPACEFILE,
PARAMETERS,BASELINE,PMIN,PMAX,PINC,MEASURES,CSV_FILE_NAME,
ATESTRESULTSFILENAME,TIMESTEP)
oat_graphATestsForSampleSize(FILEPATH,PARAMETERS,MEASURES,
ATESTSIGLEVEL,ATESTRESULTSFILENAME,BASELINE,
PMIN=PMIN,PMAX=PMAX,PINC=PINC,PARAMVALS=NULL)
oat_plotResultDistribution(FILEPATH,PARAMETERS,MEASURES,MEASURE_SCALE,
CSV_FILE_NAME,BASELINE,PMIN=PMIN,PMAX=PMAX,PINC=PINC,
PARAMVALS=NULL,TIMEPOINTS,TIMEPOINTSCALE)
## Example for Latin-Hypercube Analysis
lhc_process_netlogo_result(FILEPATH,LHCSAMPLE_RESULTFILENAME,
SPARTAN_PARAMETER_FILE,NUMSAMPLES,MEASURES,
LHC_ALL_SIM_RESULTS_FILE,TIMESTEP)
PARAMETERS<-table_header_check(PARAMETERS)
MEASURES<-table_header_check(MEASURES)
lhc_generateLHCSummary(FILEPATH,PARAMETERS,MEASURES,
LHC_ALL_SIM_RESULTS_FILE,LHCSUMMARYFILENAME,
SPARTAN_PARAMETER_FILE,TIMEPOINTS,TIMEPOINTSCALE)
lhc_generatePRCoEffs(FILEPATH,PARAMETERS,MEASURES,
LHCSUMMARYFILENAME,CORCOEFFSOUTPUTFILE,
TIMEPOINTS,TIMEPOINTSCALE)
lhc_graphMeasuresForParameterChange(FILEPATH,PARAMETERS,
MEASURES,MEASURE_SCALE,CORCOEFFSOUTPUTFILE,
LHCSUMMARYFILENAME,TIMEPOINTS,TIMEPOINTSCALE)
## Example for eFAST Analysis
efast_process_netlogo_result(FILEPATH,
EFASTSAMPLE_RESULTFILENAME,PARAMETERS,NUMCURVES,
NUMSAMPLES,MEASURES,RESULTFILENAME,TIMESTEP)
PARAMETERS<-table_header_check(PARAMETERS)
MEASURES<-table_header_check(MEASURES)
efast_get_overall_medians(FILEPATH,NUMCURVES,PARAMETERS,NUMSAMPLES,
MEASURES,TIMEPOINTS,TIMEPOINTSCALE)
efast_run_Analysis(FILEPATH,MEASURES,PARAMETERS,NUMCURVES,
NUMSAMPLES,OUTPUTMEASURES_TO_TTEST,TTEST_CONF_INT,
GRAPH_FLAG,EFASTRESULTFILENAME,
TIMEPOINTS,TIMEPOINTSCALE)
# }
Run the code above in your browser using DataLab